<extend name="Public/common" />
<block name="body">
<div class="ncsc-index">
  <div class="top-container">
    <div class="basic-info">
      <dl class="ncsc-seller-info">
        <dt class="seller-name">
          <h3>{$user['real_name']}</h3>
          <h5>(用户名：{$user['user_name']})</h5>
        </dt>
        <dd class="store-logo"><p><img src="{$store['store_thumb']}"/></p><!-- <a href="{:U('store/setting/index')}"><i class="icon-edit"></i>编辑店铺设置</a>  --></dd>
        <dd class="seller-permission">登陆次数：<strong>{$user['logins']}</strong></dd>
        <dd class="seller-last-login">最后登录：<strong>{$user['login_time']|time_format}</strong></dd>
        <dd class="store-name">商户名称：{$store['store_name']}</dd>
        <dd class="store-grade">商户联系人：<strong>{$store['store_username']}({$store['store_telephone']})</strong></dd>
      </dl>
      <div class="detail-rate">
      <!--<h5><strong>商户二维码：</strong></h5>-->
        <!--<ul>-->
            <!--<li><img src="{$store['store_qrcode']}" width="75px" height="75px"/></li>-->
        <!--</ul>-->
      </div>
    </div>
  </div>
  <div class="seller-cont">
    <div class="container type-a" style="height:190px">
      <div class="hd">
        <h3>菜品信息</h3>
        <h5>您需要关注的菜品信息</h5>
      </div>
      <div class="content">
        <dl class="focus">
          <dt>今天菜品名称：</dt><dd><em id="goods_name"></em></strong></dd>
        </dl>
        <p></p>
        <dl class="focus" style="margin-top: 10px">
          <dt>今天销售数量：</dt><dd><strong><em id="goods_count">100</em></dd>
          <!--<dt>本月销售数量：</dt><dd><em id="month_add_member">100</em></dd>-->
          <!--<dt>本月销售数量：</dt><dd><em id="member_count">100</em></dd>-->
        </dl>
        <!--<dl class="focus" style="margin-top: 10px">-->
          <!--<dt>本周新增订单：</dt><dd><em id="week_add_order">100</em></dd>-->
          <!--<dt>本月新增订单：</dt><dd><em id="month_add_order">100</em></dd>-->
          <!--<dt>总订单：</dt><dd><em id="order_count">100</em></dd>-->
        <!--</dl>-->
      </div>
    </div>
</div>
<script>
$(function(){
	var timestamp=Math.round(new Date().getTime()/1000/60);//异步URL一分钟变化一次
    $.getJSON('/index.php?m=store&c=index&a=dashboard&rand='+timestamp, null, function(data){
        if (data == null) return false;
        for(var a in data) {
            if(data[a] != 'undefined') {
                $('#'+a).html(data[a]);
            }
        }
    });

});
</script>

</block>
